package android.group.one;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;

public class Android_group_proj1Activity extends Activity {
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button math = (Button) findViewById(R.id.math);
        math.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                // Perform action on click
            	Intent myIntent = new Intent(v.getContext(), leve.class);
            	startActivity(myIntent);
            }
        });
        //m = new math(this);
        
        Button english = (Button) findViewById(R.id.english);
        english.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                // Perform action on click
            }
        });
        
        Button help = (Button) findViewById(R.id.help);
        help.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                // Perform action on click
            }
        });
        
        Button other = (Button) findViewById(R.id.other);
        other.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                // Perform action on click
            }
        });
    }
    
    public boolean OnClickListener(View view, MotionEvent event) {
    	Intent myIntent = new Intent(view.getContext(), leve.class);
        startActivity(myIntent);
        return false;
    }
}